Adpative template