updated script for 'at' syntax